package com.lxk.cms.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@AutoMapper(target = CmsReplyBo.class, reverseConvertGenerate = false)
public class CmsReplyCreateBo {

    /**
     * 笔记ID
     */
    @NotNull(message = "笔记ID不能为空")
    private Long keyId;

    /**
     * 类型
     */
//    @NotNull(message = "类型不能为空")
    private String category;

    /**
     * 评论ID，一级评论传0
     */
    @NotNull(message = "评论ID不能为空")
    private Long replyId;

    /**
     * 评论/回复内容
     */
    @Length(max = 200, message = "内容不能超过200个字符")
    @NotEmpty
    private String content;

    /**
     * 用户ID，移动端不传值
     */
    private Long userId;

    /**
     * 帖子的作者的用户ID，移动端不传值,
     */
    private Long authorUserId;
}
